﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Jxc
{
    public partial class Zy2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Label5.Text =DateTime.Now.ToString();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (this.TextBox1.Text=="")
            {
                Label8.Text = "您还未输入内容哦，这点小伎俩可骗不了我哦！";


            }
            else
            {
                Label8.Text = "此新闻来自 "+ DropDownList1.Text+" 谢谢你提交的新闻！";
            }


        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            this.TextBox1.Text = "";
            Label8.Text = "";
        }
    }
}